<?php

namespace app\admin\model;


class Problemlist extends Base
{

    // 表名
    protected $name = 'other_problemlist';


    // 追加属性
    protected $append = [
        'fk_bdl_label_text'
    ];


    public function getLabelList()
    {
        return ["0" => "必读","1" => "NEW", "2" => "HOT"];
    }

    public function getLinktypeList()
    {
        return ["0" => "富文本","1" => "链接"];
    }

    public function getFkBdlLabelTextAttr($value, $data)
    {
        $value = $value ? $value : (isset($data['fk_bdl_label']) ? $data['fk_bdl_label'] : '');
        $list = $this->getLabelList();
        return isset($list[$value]) ? $list[$value] : '';
    }










}
